package com.sziit.se.highconcurrency.order.application.feignclient;

import com.sziit.se.highconcurrency.common.result.DataResult;
import com.sziit.se.highconcurrency.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user", url = "http://localhost:6868")
public interface UserFeign {

    @GetMapping("/application/user/query-by-id")
    DataResult getUserById(@RequestParam(value = "user_id") String userId);
}
